package util;

import org.apache.shiro.crypto.hash.Md5Hash;

public class CryptographyUtil {
	public static String md5(String str,String salt){
		return new Md5Hash(str,salt).toString();
	}
	
	public static void main(String[] args) {
		String password="zhoutm";
		
		System.out.println(CryptographyUtil.md5(password, "tmac"));
	}
}
